// 页面路由
export default [
  {
    path: "/",
    component: () => import("./Home"),
  },
  {
    path: "/home",
    name: "home",
    component: () => import("./Home"),
    meta: {
      show: true,
    },
  },
  {
    path: "/login",
    name: "login",
    component: () => import("./Login"),
    meta: {
      show: false,
    },
  },
  {
    path: "/search/:keyword?",
    name: "search",
    component: () => import("./Search"),
    meta: {
      show: true,
    },
  },
  {
    path: "/register",
    component: () => import("./Register"),
    meta: {
      show: false,
    },
  },
  {
    path: "/detail/:skuid",
    component: () => import("./Detail"),
    meta: {
      show: true,
    },
  },
  {
    path: "/addcartsuccess",
    name:'addcartsuccess',
    component: () => import("./addCartSuccess"),
    meta: {
      show: true,
    },
  },
  {
    path: "/shopcart",
    name:'ShopCart',
    component: () => import("./shopCart"),
    meta: {
      show: true,
    },
  },
  {
    path: '/communication',
    component: () => import('@/views/Communication/Communication'),
    children: [
      {
        path: 'event',
        component: () => import('@/views/Communication/EventTest/EventTest'),
        meta: {
          isHideFooter: true
        },
      },
      {
        path: 'model',
        component: () => import('@/views/Communication/ModelTest/ModelTest'),
        meta: {
          isHideFooter: true
        },
      },
      {
        path: 'sync',
        component: () => import('@/views/Communication/SyncTest/SyncTest'),
        meta: {
          isHideFooter: true
        },
      },
      {
        path: 'attrs-listeners',
        component: () => import('@/views/Communication/AttrsListenersTest/AttrsListenersTest'),
        meta: {
          isHideFooter: true
        },
      },
      {
        path: 'children-parent',
        component: () => import('@/views/Communication/ChildrenParentTest/ChildrenParentTest'),
        meta: {
          isHideFooter: true
        },
      },
      {
        path: 'scope-slot',
        component: () => import('@/views/Communication/ScopeSlotTest/ScopeSlotTest'),
        meta: {
          isHideFooter: true
        },
      }
    ],
  },
];
